/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.enrolldetails;

import java.util.List;

import com.idenger.modules.edu.dao.enrolldetails.EduEnrollDetailsDao;
import com.idenger.modules.edu.entity.enrolldetails.EduEnrollDetails;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;

/**
 * 报名详情Service
 * @author 兰正军
 * @version 2017-12-12
 */
@Service
@Transactional(readOnly = true)
public class EduEnrollDetailsService extends CrudService<EduEnrollDetailsDao, EduEnrollDetails> {

	public EduEnrollDetails get(String id) {
		return super.get(id);
	}
	
	public List<EduEnrollDetails> findList(EduEnrollDetails eduEnrollDetails) {
		return super.findList(eduEnrollDetails);
	}
	
	public Page<EduEnrollDetails> findPage(Page<EduEnrollDetails> page, EduEnrollDetails eduEnrollDetails) {
		return super.findPage(page, eduEnrollDetails);
	}
	
	@Transactional(readOnly = false)
	public void save(EduEnrollDetails eduEnrollDetails) {
		super.save(eduEnrollDetails);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduEnrollDetails eduEnrollDetails) {
		super.delete(eduEnrollDetails);
	}
	
	public EduEnrollDetails getByOrderId(String orderId){
		return dao.getByOrderId(orderId);
	}
	
}